import request from '@/plugin/axios'

<#list methods as api>
export function ${api.name}(${api.dataOrParams}) {
  return request({
    url: '${api.path}',
    method: '${api.method}',
    ${api.dataOrParams}
  })
}

</#list>
const obj = {
<#list methods as api>
    ${api.name}<#if api_has_next>,</#if>
</#list>
}

export default obj
